/*
 * @Author: 谢陈洁
 * @Date: 2025-07-14 11:24:54
 * @LastEditors: 谢陈洁
 * @LastEditTime: 2025-07-14 16:43:17
 * @Description: useDrawer hooks 封装
 */
export function useDrawer() {
  const drawerVisible = ref(false)
  const openDrawer = (beforeFn?: () => void) => {
    beforeFn?.()
    drawerVisible.value = true
  }
  const closeDrawer = () => {
    drawerVisible.value = false
  }

  return {
    drawerVisible,
    openDrawer,
    closeDrawer
  }
}
